import Layout from "@/layout/index.vue";
import RainfallRegulative from "@/views/rainfallRegulative/index.vue";
import WaterDev from "@/views/waterDev/index.vue";
import AutoMedicateDev from "@/views/autoMedicateDev/index.vue";
import SludgeTreatmentDev from "@/views/sludgeTreatmentDev/index.vue";

// routes
const routes = [
  {
    path: "/",
    redirect: "/layout",
  },
  {
    path: "/layout",
    name: "Layout",
    redirect: "/layout/rainfallRegulative",
    component: Layout,
    children: [
      {
        path: "/layout/rainfallRegulative",
        name: "RainfallRegulative",
        component: RainfallRegulative,
        meta: {
          title: "雨水调节池",
          isTab: true,
          KeepAlive: true,
        },
      },
      {
        path: "/layout/waterDev",
        name: "WaterDev",
        component: WaterDev,
        meta: {
          title: "高效水处理设备",
          isTab: true,
          KeepAlive: true,
        },
      },
      {
        path: "/layout/autoMedicateDev",
        name: "AutoMedicateDev",
        component: AutoMedicateDev,
        meta: {
          title: "自动投药装置",
          isTab: true,
          KeepAlive: true,
        },
      },
      {
        path: "/layout/sludgeTreatmentDev",
        name: "SludgeTreatmentDev",
        component: SludgeTreatmentDev,
        meta: {
          title: "污泥处理设备",
          isTab: true,
          KeepAlive: true,
        },
      },
    ],
  },
];

export default routes;
